<?php
namespace app\api\controller;

class Index extends ApiBase
{
    protected $middleware = [
               'app\api\middleware\Auth' => ['only' => ['index'] ],
           ];
           
    public function index()
    {
        $data = [
            "usename" => "admin",
            "pwd" => "123456",
            "avatar" => "https:www.wexn.cm/acdfgdfgregegdbtnt"
        ];
        return success($data);
    }
}
